package syntaxTree.mainClass;

import syntaxTree.id.*;
import syntaxTree.stm.*;

public class mainStart extends mainClass{		//-> class id {public static void main(string[] id)		{statement}}
	id id1;
	id id2;
	stm s;
	public mainStart(id id1, id id2, stm s)
	{
		this.id1 = id1;
		this.id2 = id2;
		this.s = s;
	}
	public String toString()
	{
		return ("class "+id1.toString()+" {\n"+"public static void main ( String[] "+id2.toString()+" )\n{"+s.toString()+"}\n"+"};\n");
	}
	public String toC()
	{
		return ("void main ( char** "+id2.toC()+" )\n{"+s.toC()+"}\n");
	}
}
